import request from '@/utils/http';

// /** 获取当前用户的链接列表 */
// export const getLinkLIstApi = (params: any): Promise<App.RequestResult> => {
//   return request.get('link/list', {params});
// };

// /** 删除用户链接 */
// export const deleteLinkApi = (id: string): Promise<App.RequestResult> => {
//   return request.delete(`link/deleted/${id}`);
// }

// /** 创建用户链接 */
// export const createLinkApi = (data: any): Promise<App.RequestResult> => {
//   return request.post('link/created', data);
// }

/** 获取价格配置列表 */
export const getAiPayConfigApi = (params: any): Promise<App.RequestResult> => {
  return request.get('dlyadminAiFuncsConfig/list', {params});
};


/** 删除配置 */
export const deleteAiPaApi = (id: string): Promise<App.RequestResult> => {
  return request.delete(`dlyadminAiFuncsConfig/deleted/${id}`);
}

/** 创建配置 */
export const createAiPayApi = (data: any): Promise<App.RequestResult> => {
  return request.post('dlyadminAiFuncsConfig/add', data);
}

/** 编辑配置 */
export const editAiPayApi = (data: any, id: string): Promise<App.RequestResult> => {
  return request.put(`dlyadminAiFuncsConfig/edit/${id}`, data);
}